---
title: Range.ExportFragment Method (Word)
keywords: vbawd10.chm157155753
f1_keywords:
- vbawd10.chm157155753
ms.prod: word
api_name:
- Word.Range.ExportFragment
ms.assetid: 85c72276-9118-4156-22f9-84d00e7746da
ms.date: 06/08/2017
---


# Range.ExportFragment Method (Word)

 Exports the selected range into a document for use as a document fragment.


## Syntax

 _expression_ . **ExportFragment**( **_FileName_** , **_Format_** )

 _expression_ An expression that returns a **[Range](range-object-word.md)** object.


### Parameters



|**Name**|**Required/Optional**|**Data Type**|**Description**|
|:-----|:-----|:-----|:-----|
| _FileName_|Required| **String**|Specifies the path and file name of the file in which to save the document fragment.|
| _Format_|Required| **WdSaveFormat**|Specifies the file format of the document fragment file. |

### Return Value

Nothing


